package ocl;


public class IfThenElseExpression extends OclExpression {

	OclExpression if_, then_, else_;

	public IfThenElseExpression(OclExpression oclExpression,
			OclExpression oclExpression2, OclExpression oclExpression3) {
		this.if_ = oclExpression;
		this.then_ = oclExpression2;
		this.else_ = oclExpression3;
	}

	@Override
	public String toK() {
		return "if " + if_.toK() + " then " + then_.toK() + " else "
				+ else_.toK();
	}
}
